﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;

namespace WebApplication1
{
    public partial class SanPhamTheoDanhMuc : System.Web.UI.Page
    {
        //public SanPhamTheoDanhMuc()
        //{ 
           
        //}
        //BLLSanPham sanpham;
        
        //public SanPhamTheoDanhMuc(BLLSanPham _sanpham):this()
        //{
        //    sanpham = _sanpham;
        //}
        
        protected void Page_Load(object sender, EventArgs e)
        {
            BLLSanPham sanpham = new BLLSanPham(Request.QueryString["Iddanhmuc"].ToString());

            CollectionPager1.PageSize = 6;
            CollectionPager1.DataSource = sanpham.GetSpdm;
            CollectionPager1.BindToControl = DataListsanpham;
            DataListsanpham.DataSource = CollectionPager1.DataSourcePaged;
        }
    }
}
